﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultMaster.Master" AutoEventWireup="true" CodeBehind="Contacts.aspx.cs" Inherits="MyWeb.Modules.Pages.Contacts" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="contact">
        <div class="box">
            <div>
                <h2 class="contact-title-left">
                    Họ tên:
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="*"
                        ControlToValidate="YourName" ValidationGroup="save" /></h2>
                <asp:TextBox ID="YourName" runat="server" Width="250px" /><br />
                <h2 class="contact-title-left">
                    Số điện thoại:
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="YourPhone"
                        ErrorMessage="Vui lòng nhập số" ValidationExpression="^\d+$" ValidationGroup="save"></asp:RegularExpressionValidator>
                </h2>
                <asp:TextBox ID="YourPhone" runat="server" Width="250px" /><br />
                <h2 class="contact-title-left">
                    Email:
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                        ControlToValidate="YourEmail" ValidationGroup="save" /></h2>
                <asp:TextBox ID="YourEmail" runat="server" Width="250px" />
                <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator23"
                    SetFocusOnError="true" Style="font-size: 1.2em" Text="Example: username@gmail.com"
                    ControlToValidate="YourEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    Display="Dynamic" ValidationGroup="save" /><br />
                <h2 class="contact-title-left">
                    Địa chỉ:
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                        ControlToValidate="YourAdress" ValidationGroup="save" /></h2>
                <asp:TextBox ID="YourAdress" runat="server" Width="250px" /><br />
                <h2 class="contact-title-left">
                    Tiêu đề:
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                        ControlToValidate="YourAdress" ValidationGroup="save" /></h2>
                <asp:TextBox ID="YourSubject" runat="server" Width="400px" /><br />
                <h2 class="contact-title-left">
                    Nội dung:
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                        ControlToValidate="Comments" ValidationGroup="save" /></h2>
                <asp:TextBox ID="Comments" runat="server" TextMode="MultiLine" Rows="10" Width="400px" />
                <h2 class="contact-title-left">
                    Mã xác nhận:<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
                        ErrorMessage="*" ControlToValidate="TextBox1" ValidationGroup="save" />
                </h2>
                <asp:TextBox ID="TextBox1" runat="server" CssClass="contact-input" />
                <cc1:captchacontrol id="ccJoin" runat="server" captchabackgroundnoise="none" captchalength="5"
                    captchaheight="35" captchawidth="180" captchalinenoise="none" captchamintimeout="5"
                    captchamaxtimeout="240" cssclass="contact-capcha" ></cc1:captchacontrol>
                <br />
                <asp:Label ID="Label1" runat="server" CssClass="messeger"></asp:Label><br />
                <p>
                    <asp:Label ID="ltrmsg" runat="server" CssClass="contact-message"></asp:Label>
                </p>
            </div>
        <div>
            <asp:Button ID="btnSubmit" runat="server" Text="Gửi liên hệ" ValidationGroup="save" onclick="btnSubmit_Click" />
            <input name="reset" type="reset" id="reset" value="Làm lại" />
        </div>
        </div>
        <div class="box2">
            <asp:Literal ID="ltrcontact" runat="server"></asp:Literal>
        </div>
    </div>
</asp:Content>
